<div class="content-box"><!-- Start Content Box -->
				
				<div class="content-box-header">
					
					<h3>Thông tin Quản trị</h3>
					
					<ul class="content-box-tabs">
						<li><a href="#tab1" class="default-tab">Table</a></li> <!-- href must be unique and match the id of target div -->
						<li><a href="#tab2">Forms</a></li>
					</ul>
					
					<div class="clear"></div>
					
				</div> <!-- End .content-box-header -->
				
				<div class="content-box-content">
			   
					<div class="tab-content default-tab" id="tab1"> <!-- This is the target div. id must match the href of this div's tab -->
					<?php
					$display=5;
					if(isset($_GET['total']) && (int)$_GET['total']){
						$total = $_GET['total'];
					}else{
						  $query='SELECT COUNT(id) FROM tbl_nguoidung';
						  $res = mysql_query($query);
						  $row1=mysql_fetch_array($res);
						  $record = $row1[0];
						  if($record > $display){
							  $total = ceil($record/$display);
						  }else{
							  $total=1;
						  }
						}
					$start = (isset($_GET['start']) && (int)$_GET['start']>=0)?$_GET['start']:0;
					
                    $sql='SELECT * FROM tbl_nguoidung ORDER BY id DESC LIMIT '.$start.','.$display.'';						
                    $result=mysql_query($sql);
                    $num=mysql_num_rows($result);	
                    if($num>0)
                    {
                    ?>
						<table>
								<tr>
								   	<th><input class="check-all" type="checkbox" /></th>
								  	<th>Tên người dùng</th>
								  	<th>Tài khoản</th>
                                    <th>Mật Khẩu</th>
									<th>Action</th>
								</tr>
							
						 	<?php
							
                            while($row=mysql_fetch_array($result))
							{
							?>					 
							
								<tr>
									<td><input type="checkbox" /></td>
									<td><a href="index.php?page=user&act=edit&id=<?php echo $row['id'];?>" title="Đổi mật khẩu"><?php  echo $row['fullname'];?></a></td>
									<td><?php  echo $row['username'];?></td>
                                    <td>a<?php  echo $row['pass'];?>h0sc</td>
									<td>
										<!-- Icons -->
										 <a href="index.php?page=user&act=edit&id=<?php echo $row['id'];?>" title="Edit"><img src="resources/images/icons/pencil.png" alt="Edit" /></a>
										 <a href="index.php?page=user&act=del&id=<?php echo $row['id'];?>" title="Delete"><img src="resources/images/icons/cross.png" alt="Delete" /></a> 
										 
									</td>
								</tr>
							
                            <?php
							}
							?>
							<tr>
                            <?php
							if($total>1)
							{
								$next=$start + $display;
								$prev=$start - $display;
								$current=($start/$display)+1;
							?>
								
									<td colspan="9">
										
                                        <div class="pagination">
										<?php
										//Hiển thị prev
                                        if($current !=1)
										{
											echo '<a href="index.php?page=user&start='.$prev.'" title="Previous Page">&laquo; Previous</a>';
										}
										 //Hiển thị phân trang trong
										for($i=1;$i<=$total;$i++)
										{
											if($current!=$i)
											{
												echo '<a href="index.php?page=user&start='.($display*($i-1)).'" class="number" title="1">'.$i.'</a>';
											}else
												{
													echo '<a class="number current">'.$i.'</a>';
												}
										}
										//Hiển thị next
										if($current !=$total)
										{
											echo '<a href="index.php?page=user&start='.$next.'" title="Next Page">Next &raquo;</a>'; 
										}
										?>
											
										</div> <!-- End .pagination -->
										<div class="clear"></div>
									</td>
								
                            <?php
							}
							?>
							</tr>
						</table>
				<?php
                    }
					else{
						echo 'Không có tài khoản nào';
						}
                ?>
					</div> <!-- End #tab1 -->
					
					<div class="tab-content" id="tab2">
					
						<form action="" method="post">
							
							<fieldset> <!-- Set class to "column-left" or "column-right" on fieldsets to divide the form into columns -->
								
								<p>
									<label>Small form input</label>
										<input class="text-input small-input" type="text" id="small-input" name="small-input" /> <span class="input-notification success png_bg">Successful message</span> <!-- Classes for input-notification: success, error, information, attention -->
										<br /><small>A small description of the field</small>
								</p>
								
								<p>
									<label>Medium form input</label>
									<input class="text-input medium-input" type="text" id="medium-input" name="medium-input" /> <span class="input-notification error png_bg">Error message</span>
								</p>
								
								<p>
									<label>Large form input</label>
									<input class="text-input large-input" type="text" id="large-input" name="large-input" />
								</p>
								
								<p>
									<label>Checkboxes</label>
									<input type="checkbox" name="checkbox1" /> This is a checkbox <input type="checkbox" name="checkbox2" /> And this is another checkbox
								</p>
								
								<p>
									<label>Radio buttons</label>
									<input type="radio" name="radio1" /> This is a radio button<br />
									<input type="radio" name="radio2" /> This is another radio button
								</p>
								
								<p>
									<label>This is a drop down list</label>              
									<select name="dropdown" class="small-input">
										<option value="option1">Option 1</option>
										<option value="option2">Option 2</option>
										<option value="option3">Option 3</option>
										<option value="option4">Option 4</option>
									</select> 
								</p>
								
								<p>
									<label>Textarea with WYSIWYG</label>
									<textarea class="text-input textarea wysiwyg" id="textarea" name="textfield" cols="79" rows="15"></textarea>
								</p>
								
								<p>
									<input class="button" type="submit" value="Submit" />
								</p>
								
							</fieldset>
							
							<div class="clear"></div><!-- End .clear -->
							
						</form>
						
					</div> <!-- End #tab2 -->        
					
				</div> <!-- End .content-box-content -->
				
			</div> <!-- End .content-box -->